<script>
var _siteUrl = '<?php echo  Yii::app()->params['siteUrl']?>';

</script>
<?php
/* @var $this HecUserController */
/* @var $model HecUser */

$this->breadcrumbs=array(
	'Hec Users'=>array('index'),
	$model->id=>array('view','id'=>$model->id),
	'Update',
);

?>

<span class="page_h3">详情 元素信息 <?php echo $model->c_username; ?></span>
<a href="<?php echo Yii::app()->params['siteUrl'];?>admincp/hecUser/update/id/<?php echo $model->id; ?>" title="编辑"><img src="<?php echo Yii::app()->params['siteUrl'];?>/global/img/icons/page_white_edit.png" /></a>
<form action="#" method="post" id="form1">
    <span>基本信息</span>
    <table cellpadding="1" cellspacing="1" class="c_table">
        <tr class="r1">
            <td class='c_row0' align="right">中文姓名：</td>
            <td>
            <?php echo $model->c_username?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2" >
            <td class='c_row0' width="140" align="right">工号：</td>
            <td width="450"><?php echo $model->unique_id?></td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">名称(邮箱前缀)：</td>
            <td>
            <?php echo $model->username?>
            </td>
            <td class="red"></td>
        </tr>
        
        <tr class="r2">
            <td class='c_row0' align="right">生日：</td>
            <td>
            <?php echo $model->birthday?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">邮箱：</td>
            <td>
            <?php echo $model->username?>@happyelements.com
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">手机：</td>
            <td>
            <?php echo $model->mobile?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">部门：</td>
            <td>
            <?php echo UserDepartment::getInfoById($model->department,"name"); ?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">BU：</td>
            <td>
            <?php echo UserDepartment::getInfoById($model->bu,"name"); ?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">成本中心CODE：</td>
            <td>
            <?php echo  UserCode::getInfoById($model->code,"code") .' '.UserCode::getInfoById($model->code,"name");?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">公司：</td>
            <td>
            <?php echo HecUser::getCompanyName($model->company);?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">职位类别：</td>
            <td>
            <?php echo HecUser::getAttributeName($model->attribute);?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">属性：</td>
            <td>
            <?php echo $model->position?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">工作性质：</td>
            <td>
            <?php echo HecUser::getWorkTypeName($model->work_type); ?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">性别：</td>
            <td>
            <?php echo HecUser::getGenderName($model->gender); ?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">试用期：</td>
            <td>
            <?php echo $model->probation?> 个月
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r2">
            <td class='c_row0' align="right">入职时间：</td>
            <td>
            <?php echo $model->entry_point?>
            </td>
            <td class="red"></td>
        </tr>
        <tr class="r1">
            <td class='c_row0' align="right">状态：</td>
            <td>
            <?php echo CHtml::dropDownList('status' ,1 ,$statusOption,array('class'=>'mid_select2','disabled'=>'disabled')); ?>
            </td>
            <td class="red"></td>
        </tr>
    </table>
    </form>
    <br />